package com.atguigu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/*************************************************
                时间: 2021-05-13
                作者: 刘  辉
                描述: 
  ************************************************/
@Controller
@RequestMapping("/actor")
public class ActorController {

    @RequestMapping("/hello")
    public String success(int i){
        int result = 10/i;
        int[] nums=new int[]{1,2,5};
        System.out.println("hello world......号"+nums[i]);
        return "success";
    }
    @RequestMapping("/abc")
    public String abc(){
        System.out.println("hello world......");
        return "success";
    }
}
